import java.util.Random;


public class Enemy {
private String Name;
private int atk, def, moneyMin, moneyMax, mgk, hlth, hp, level;

	public Enemy(String eName){
		if (eName.equals("mouse")){
			this.atk = 0;
			this.def = 1;
			this.mgk = 0;
			this.moneyMin = 0;
			this.moneyMax = 1;
			this.hlth = 3;			
		}
		else if (eName.equals("dog")){
			this.atk = 2;
			this.def = 1;
			this.mgk = 0;
			this.moneyMin = 3;
			this.moneyMax = 5;
			this.hlth = 10;
		}
		
		this.hp = this.hlth;
		this.level = this.atk + this.def + this.mgk + this.hlth / 2;
		this.level /= 4;
	}
	public int getHP(){
		return this.hp;
	}
	public int getHlth(){
		return this.hlth;
	}
	public int getMgk(){
		return this.mgk;
	}
	public int getAtk(){
		return this.atk;
	}
	public int getDef(){
		return this.def;
	}
	public int getLvl(){
		return this.level;
	}
	public String getName(){
		return this.Name;
	}
	public int dies(){
		Random random = new Random();
		return random.nextInt(this.moneyMax) + (this.moneyMax - this.moneyMin);
	}
	public int checkHP(){
		if (this.hp<=0)
			return dies();
		
		return -1;
	}
     public void changeHP(boolean attack, int amount){
     if (attack)
       this.hp -= hurt;
     else
       this.hp += hurt;
}
